#ifndef RUNNINGTHREAD_H
#define RUNNINGTHREAD_H

#include <QThread>
#include <QMutex>

class CPU;
class BreakPointTable;

class RunningThread : public QThread
{
    Q_OBJECT
public:
    RunningThread(QObject *parent = 0);
    ~RunningThread();
    //
    void run();
    void stop();
    //
    void setStopAddress(quint32 _address);

private:
    CPU* cpu;
    bool over;
    QMutex mutex;
    BreakPointTable* table;
    quint32 address;

};

#endif // RUNNINGTHREAD_H
